]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix ripple animation for RTL locales
authorAbderrahim Kitouni <a.kitouni@gmail.com>
Tue, 30 Nov 2010 15:12:22 +0000 (16:12 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 22 Mar 2011 18:35:21 +0000 (19:35 +0100)
The animation was invisible because it was going out of screen, also
add a mirrored version of the image to the theme.

https://bugzilla.gnome.org/show_bug.cgi?id=584662

data/Makefile.am
data/theme/corner-ripple-ltr.png [new file with mode: 0644]
data/theme/corner-ripple-rtl.png [new file with mode: 0644]
data/theme/corner-ripple.png [deleted file]
data/theme/gnome-shell.css
js/ui/panel.js

index b0477194cd41c01814a97d75f033e5ffc2a4f259..819b15c344e28e539dea8343e51ab09d2073d685 100644 (file)
@@ -24,7 +24,8 @@ dist_theme_DATA =                             \
        theme/calendar-today.svg                \
        theme/close-window.svg                  \
        theme/close.svg                         \
-       theme/corner-ripple.png                 \
+       theme/corner-ripple-ltr.png             \
+       theme/corner-ripple-rtl.png             \
        theme/dash-placeholder.svg              \
        theme/filter-selected-ltr.svg           \
        theme/filter-selected-rtl.svg           \
diff --git a/data/theme/corner-ripple-ltr.png b/data/theme/corner-ripple-ltr.png
new file mode 100644 (file)
index 0000000..326ecaa
Binary files /dev/null and b/data/theme/corner-ripple-ltr.png differ
diff --git a/data/theme/corner-ripple-rtl.png b/data/theme/corner-ripple-rtl.png
new file mode 100644 (file)
index 0000000..26cf965
Binary files /dev/null and b/data/theme/corner-ripple-rtl.png differ
diff --git a/data/theme/corner-ripple.png b/data/theme/corner-ripple.png
deleted file mode 100644 (file)
index 326ecaa..0000000
Binary files a/data/theme/corner-ripple.png and /dev/null differ
index e26c1624971ac6496291b6f6578bf8181bae596b..caaa5c425ccf523fc1ee9575542ecc8dffd5616a 100644 (file)
@@ -1280,7 +1280,11 @@ StTooltip StLabel {
 .ripple-box {
     width: 52px;
     height: 52px;
-    background-image: url("corner-ripple.png");
+    background-image: url("corner-ripple-ltr.png");
+}
+
+.ripple-box:rtl {
+    background-image: url("corner-ripple-rtl.png");
 }
 
 .switcher-arrow {
index 5ef212a93e65f95f668eb40a8690346675433ce3..8cbceb05106eb270fe1e55385b0034e25e500e60 100644 (file)
@@ -706,6 +706,8 @@ HotCorner.prototype = {
                                         x: x,
                                         y: y });
         ripple._opacity =  startOpacity;
+        if (ripple.get_direction() == St.TextDirection.RTL)
+            ripple.set_anchor_point_from_gravity(Clutter.Gravity.NORTH_EAST);
         Tweener.addTween(ripple, { _opacity: finalOpacity,
                                    scale_x: finalScale,
                                    scale_y: finalScale,